package tgc.edu.tms.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.tms.custom.CommonService;
import tgc.edu.tms.entity.EducationalPlanner;
import tgc.edu.tms.repository.EducationalPlannerRepository;

@Service
public class EducationalPlannerService extends CommonService<EducationalPlanner, Integer>{
	@Autowired
	private EducationalPlannerRepository educationalPlannerDAO;

	public Integer findByMaxId() {
		return educationalPlannerDAO.findByMaxId();
	}

	public List<EducationalPlanner> findBySchoolyearId(Integer schoolyearID) {
		return educationalPlannerDAO.findBySchoolyearId(schoolyearID);
	}

	public List<EducationalPlanner> findBySchoolyearIdAndCurriculumProfessionId(Integer schoolyearId,
			Integer profesion) {
		return educationalPlannerDAO.findBySchoolyearIdAndCurriculumProfessionId(schoolyearId,profesion);
	}

	public List<EducationalPlanner> findBySchoolyearIdAndCurriculumProfessionIdAndTeacherUsername(Integer schoolyearId,
			Integer profesion, String username) {
		return educationalPlannerDAO.findBySchoolyearIdAndCurriculumProfessionIdAndTeacherUsername(schoolyearId,profesion, username);
	}



}
